<h3><a href="/news/">Новости</a></h3>
<? if($this->res!=false):?>
<div class="news_block clearfix">
	<div class="items clearfix" >
	<?php $first = true;?>
	<?php foreach ($this->res as $item):?>
		<?php 
		$date = new Zend_Date($item['date'],'yyyy-MM-dd');
		$date->setLocale('ru_RU');
		?>
		<?php $images=explode(',', trim($item['images']));?>
		<?php if($images[0]):?>
			<?php 
				$image = ( isset($images[1]) ) ?  $images[1] : $images[0];
				$gray=ROOT_PATH.$this->image_Helper($image)->crop()->resize(302,160,'fill')->asGrayscale()->applyFilter(2,20)->getUrl();
			?>
			<div class='item-wrap <?=($first) ? 'first' : ''?>'>
			<?php $first = false;?>
				<a class="item roundCorners" href="/news/id/<?=$item['id']?>" style="background-image:url(<?=$this->image_Helper($image)->crop()->resize(302,160,'fill')->resizeCanvas('100%','310',0,0)->merge($gray,0,160)->getUrl();?>)">
						<span><span>
							<?php echo $item['label']?>			
						</span></span>	
						<?php if($item['stripe']>0):?>
						<b class="stripe birka_<?= $item['stripe']?>"></b>
						<?php endif;?>
				</a>
			</div>
		<?php endif;?>
	<?php endforeach;?>
	</div>
</div>
<?php endif;?>

